package com.dtwave.param;
import lombok.*;

import java.io.Serializable;
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class EsparamObj implements Serializable {
   @NonNull
   private String esUrl;
    @NonNull
    private String esIndex;
    @NonNull
    private String esMaxAction;
    @NonNull
    private String esIntervalMs;
    @NonNull
    private String esMaxReties;
    @NonNull
    private Integer esIndexShards;
    @NonNull
    private Integer esIndexReplicas;
    @NonNull
    private Boolean isQuery;

    @Override
    public String toString() {
        return "es参数信息如下："+
                "esUrl"+esUrl+
                "esIndex"+esIndex+
                "esMaxAction"+esMaxAction+
                "esIntervalMs"+esIntervalMs+
                "esMaxReties"+esMaxReties+
                "esIndexShards"+esIndexShards+
                "esIndexReplicas"+esIndexReplicas+
                "isQuery"+isQuery+"}";
    }
}
